<% provide(:title, "Log in") %>
<h1>登录</h1>
<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(:session, url: login_path) do |f| %>
        <%= f.label :username, "用户名" %>
        <%= f.text_field :username, class: 'form-control' %>
        <%= f.label :password, "密码" %>
        <%= f.password_field :password, class: 'form-control' %>
        <%= f.submit "登录", class: "btn btn-primary" %>
    <% end %>
    <p>新用户?<%= link_to "现在注册", signup_path %></p>
  </div>
</div>